package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.bean.Comment;
import com.example.service.CommentService;
import com.example.mapper.CommentMapper;
import com.example.until.Result;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author wjf
* @description 针对表【t_comment】的数据库操作Service实现
* @createDate 2022-10-02 14:48:04
*/
@Service
public class CommentServiceImpl extends ServiceImpl<CommentMapper, Comment> implements CommentService{

    @Resource
    private CommentMapper commentMapper;

    @Override
    public List<Comment> getComments(Integer articleId,Integer bookId) {
        return commentMapper.getComments(articleId,bookId);
    }
}




